package model

/*
	菜单权限表
*/
type MenuAuth struct {
	BaseHeaderModel
	Name       string `gorm:"type:varchar(32);default:'';comment:权限名称"`
	Icon       string `gorm:"type:varchar(50);default:'';comment:图标"`
	Pid        int64  `gorm:"type:int(4);default:0;comment:父级Id"`
	Controller string `gorm:"type:varchar(32);default:'';comment:控制器名称"`
	Action     string `gorm:"type:varchar(32);default:'';comment:方法名名称"`
	Params     string `gorm:"type:varchar(128);default:'';comment:参数"`
	FontFamily string `gorm:"type:varchar(20);default:'';comment:字体"`
	Spreed     int64  `gorm:"type:tinyint(1);default:0;comment:spreed"`
	IsCheck    int64  `gorm:"type:tinyint(1);default:0;comment:是否选中"`
	IsMenu     int64  `gorm:"type:tinyint(1);default:1;comment:是否菜单"`
	Path       string `gorm:"type:varchar(64);default:'';comment:路径"`
	Sorts      int64  `gorm:"type:int(2);default:0;comment:排序"`
	Status     int64  `gorm:"type:tinyint(1);default:1;comment:状态 1可用 2 不可用"`
	BaseFooterModel
}

func (u *MenuAuth) TableName() string {
	return "admin_menu_auth"
}
